<?php 
namespace app\admin\validate;
use think\validate;
class GoodsTypeValidate extends Validate{
    //验证规则
    protected $rule = array(
		'type_name' => 'max:60',
	);
    //验证失败提示信息
    protected $message = array(
		'type_name.max'=>'模型名称的值不能超过60个字符',
);
    //验证场景
    protected $scene = array(
		'add'=>array('type_name'),
		'edit'=>array('id','type_name'),
	);

}